﻿<Window x:Class="GKS.XAML.AddEditProjectWindow"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:vm="clr-namespace:GKS.Model.ViewModels;assembly=GKS.Model"
      mc:Ignorable="d" 
      d:DesignHeight="350" d:DesignWidth="550"
	Title="AddEditProjectWindow" ResizeMode="NoResize" SizeToContent="WidthAndHeight" Topmost="True" WindowStartupLocation="CenterOwner" ShowInTaskbar="False">
    
    <Window.Resources>
        <vm:EnumConverter x:Key="enumConverter" />
    </Window.Resources>
    
    <Grid Width="539" Height="322">
        <Label Content="Projet Name: " Height="28" HorizontalAlignment="Center" Name="labelProjectName" VerticalAlignment="Center" Width="78" Margin="77,46,384,248" />
        <TextBox Height="21" HorizontalAlignment="Center" Name="textBoxProjectName" VerticalAlignment="Center" Width="269" 
                 Text="{Binding Path=ProjectNameText, Mode=TwoWay}" Margin="153,47,117,253">
        </TextBox>

        <Label Content="Create Date:" Height="28" HorizontalAlignment="Center" Name="label4" VerticalAlignment="Center" Margin="79,80,389,214" />
        <DatePicker Height="25" HorizontalAlignment="Center" Name="datePickerProjectCreateDate" VerticalAlignment="Center" Width="115" 
                    SelectedDate="{Binding Path=CreateDate, Mode=TwoWay}" Margin="153,80,271,218" SelectedDateFormat="Short">
        </DatePicker>

        <Label Content="Status:" Height="28" HorizontalAlignment="Center" Name="labelStatus" VerticalAlignment="Center" IsEnabled="False" Margin="102,111,392,183" />
        <!--<ComboBox Height="26" HorizontalAlignment="Left" Margin="180,217,0,0" Name="comboBoxStatus" VerticalAlignment="Top" Width="115"
                  ItemsSource="{Binding Path=StatusCombo, Mode=TwoWay}" SelectedItem="{Binding Path=StatusComboSelected, Mode=TwoWay}" >
        </ComboBox>-->
        <RadioButton Content="Active" Height="16" HorizontalAlignment="Center" Name="radioButtonActive" VerticalAlignment="Center" Width="54"
                     GroupName="ActiveStatus" IsChecked="{Binding Path=CurrentProjectStatus, Mode=TwoWay, Converter={StaticResource enumConverter}, ConverterParameter=Active}" IsEnabled="False" Margin="152,117,332,189">
        </RadioButton>
        <RadioButton Content="Inactive" Height="16" HorizontalAlignment="Center" Name="radioButtonInactive" VerticalAlignment="Center" Width="66"
                     GroupName="InactiveStatus" IsChecked="{Binding Path=CurrentProjectStatus, Mode=TwoWay, Converter={StaticResource enumConverter}, ConverterParameter=Inactive}" IsEnabled="False" Margin="152,138,320,168">
        </RadioButton>

        <Label Content="Description:" Height="28" HorizontalAlignment="Center" Name="labelDescription" VerticalAlignment="Center" Width="70" Margin="80,161,389,133" />
        <TextBox HorizontalAlignment="Center" VerticalAlignment="Center" Name="textBoxProjectDescription" Width="270" Height="76"
                 Text="{Binding Path=DescriptionText, Mode=TwoWay}" Margin="152,166,117,80" AcceptsReturn="True" TextWrapping="Wrap">
        </TextBox>
        
        <Button Content="Save" Height="23" HorizontalAlignment="Center" Margin="260,259,199,41" Name="buttonSave" VerticalAlignment="Center" Width="80" Click="buttonSave_Click" />
        
        <Button Content="Close" Height="23" HorizontalAlignment="Center" Margin="346,258,116,40" Name="buttonClose" VerticalAlignment="Center" Width="75" Click="buttonClose_Click" />
        <!--<GroupBox Header="Create/Edit Project" Height="240" HorizontalAlignment="Center" Margin="76,35,79,62" Name="groupBox1" VerticalAlignment="Center" Width="333"></GroupBox>
        <Grid Margin="84,49,87,70">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="2*" />
                <ColumnDefinition Width="321*" />
            </Grid.ColumnDefinitions>
        </Grid>-->
    </Grid>
</Window>
